package org.dromara.business.service;


import com.baomidou.mybatisplus.extension.service.IService;
import org.dromara.business.domain.Advertising;
import org.dromara.business.domain.bo.AdvertisingBo;
import org.dromara.business.domain.vo.AdvertisingVo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 广告Service接口
 *
 * @author zlj
 * @date 2024-12-12
 */
public interface AdvertisingService extends IService<Advertising> {

    /**
     * 查询广告
     */
    AdvertisingVo queryById(Long advertisingId);

    /**
     * 查询广告列表
     */
    TableDataInfo<AdvertisingVo> queryPageList(AdvertisingBo bo, PageQuery pageQuery);

    /**
     * 查询广告列表
     */
    List<AdvertisingVo> queryList(AdvertisingBo bo);

    /**
     * 新增广告
     */
    Boolean insertByBo(AdvertisingBo bo);

    /**
     * 修改广告
     */
    Boolean updateByBo(AdvertisingBo bo);

    /**
     * 校验并批量删除广告信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    AdvertisingVo watchAdvertisements(String city);

    TableDataInfo<AdvertisingVo> approveList(AdvertisingBo bo, PageQuery pageQuery);

    /**
     * 广告审核
     * @param bo
     * @return
     */
    Boolean examineAdvertising(AdvertisingBo bo);

    Long getCountOfRegions(String city);

    Long getCityNumber(String proxyRegion);
}
